package com.education.myproject.ui.main;

import com.education.myproject.base.IModle;
import com.education.myproject.base.IPresenter;
import com.education.myproject.base.IView;
import com.education.myproject.bean.DouyuBean;
import com.education.myproject.bean.RoomBean;

import java.util.List;
import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Callback;
import rx.Subscriber;

/**
 * Created by zhonghang on 2016/10/4.
 */

public class MainContract {

    public interface View extends IView{
        public void onVerticalSucess(List<RoomBean> roomBeanList);
        public void onVerticalFail(String msg);
    }

    public interface Modle extends IModle{
            public void getVertical(Map<String,String> params, Subscriber<DouyuBean> subscriber);
            public void getVerticalFromDb(Subscriber<List<RoomBean>> subscriber);
    }
    public interface Presenter extends IPresenter{
            public void getVerticalFromNet(Map<String,String> params);
            public void  getVerticalFromDb();
    }
}
